<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let start = new Date().getTime()
        // console.log(start)


        const listData = new Array(10000).fill(0).map((item, index) => {
            return {
                id: index,
                // name: `name${index}`,
                // age: Math.floor(Math.random() * 100)
            }
        })
        const list = document.createElement('ul')
        listData.forEach(item => {
            const li = document.createElement('li')
            li.innerHTML = `id:${item.id}`
            list.appendChild(li)
        })
        document.body.appendChild(list)
        // console.log(end)
        console.log(new Date().getTime() - start)
        setTimeout(() => {
            console.log(new Date().getTime() - start)
        }, 0)


    </script>
</body>

</html>